import request from '/@/utils/request';
// 查询下拉框列表
export function listLkCombo(query:any) {
    return request({
      url: '/combo/list',
      method: 'get',
      params: query
    })
  }
  // 查询下拉框详细
  export function getLkCombo(comboID:any) {
    console.log(comboID.toString());
    
    return request({
      url: '/combo/get',
      method: 'get',
      params: {
        id: comboID.toString()
      }
    })
  }
  // 新增下拉框
  export function addLkCombo(data:any) {
    return request({
      url: '/combo/add',
      method: 'post',
      data: data
    })
  }
  // 修改下拉框
  export function updateLkCombo(data:any,id:any) {
    return request({
      url: '/combo/edit/'+id,
      method: 'put',
      data: data
    })
  }
  // 删除下拉框
  export function delLkCombo(comboIDs:any) {
    return request({
      url: '/combo/delete',
      method: 'delete',
      data:{
        ids:comboIDs
      }
    })
  }
  